package View.Town;
import java.awt.Color;
import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import java.awt.Font;

/**
 * Displays the components for the town screen
 * @author Emily Curtin
 *
 */

public class TownView extends JPanel {
	
	public JButton btnGoToLand;
	public JButton btnGoToStore;
	public JButton btnGoToAssay;
	public JButton btnGoToPub;
	public JLabel lblTown;
	public JButton btnGoBackToMap;
	
	/**
	 * Instantiates all JComponents and adds them to the panel
	 */
	public TownView() {
		setBackground(Color.BLACK);
		setLayout(null);
		setPreferredSize(new Dimension(1200, 800));
		
		btnGoToLand = new JButton("GO TO LAND OFFICE");
		btnGoToLand.setFont(new Font("Helvetica", Font.BOLD, 28));
		btnGoToLand.setBounds(197, 177, 375, 97);
		add(btnGoToLand);
		
		btnGoToStore = new JButton("GO TO STORE");
		btnGoToStore.setFont(new Font("Helvetica", Font.BOLD, 28));
		btnGoToStore.setBounds(197, 362, 375, 97);
		add(btnGoToStore);
		
		btnGoToAssay = new JButton("GO TO MULE ASSAY");
		btnGoToAssay.setFont(new Font("Helvetica", Font.BOLD, 28));
		btnGoToAssay.setBounds(614, 177, 375, 97);
		add(btnGoToAssay);
		
		btnGoToPub = new JButton("GO TO PUB: ENDS TURN");
		btnGoToPub.setFont(new Font("Helvetica", Font.BOLD, 28));
		btnGoToPub.setBounds(614, 362, 375, 97);
		add(btnGoToPub);
		
		lblTown = new JLabel("TOWN");
		lblTown.setFont(new Font("Helvetica", Font.BOLD, 70));
		lblTown.setForeground(Color.WHITE);
		lblTown.setBounds(488, 25, 252, 76);
		add(lblTown);
		
		btnGoBackToMap = new JButton("GO BACK TO MAP");
		btnGoBackToMap.setFont(new Font("Helvetica", Font.BOLD, 28));
		btnGoBackToMap.setBounds(457, 525, 285, 97);
		add(btnGoBackToMap);
		
	}
}
